package org.dormnet.dao.bean;

import java.util.Date;

public class Stumore {
	private String studentid;
	private String clazz;
	private String college;
	private int sex;
	private Date birthday;
	private String nickname;
	private String phone;
	private String safequestion;
	private String safeanswer;
	private int emailchecked;
	private String smallimage;
	private String bigimage;
	private String selfintroduce;
	private int leader;
	private String position;
	public String getStudentid() {
		return studentid;
	}
	public void setStudentid(String studentid) {
		this.studentid = studentid;
	}
	public String getClazz() {
		return clazz;
	}
	public void setClazz(String clazz) {
		this.clazz = clazz;
	}
	public String getCollege() {
		return college;
	}
	public void setCollege(String college) {
		this.college = college;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getSafequestion() {
		return safequestion;
	}
	public void setSafequestion(String safequestion) {
		this.safequestion = safequestion;
	}
	public String getSafeanswer() {
		return safeanswer;
	}
	public void setSafeanswer(String safeanswer) {
		this.safeanswer = safeanswer;
	}
	public int getEmailchecked() {
		return emailchecked;
	}
	public void setEmailchecked(int emailchecked) {
		this.emailchecked = emailchecked;
	}
	public String getSmallimage() {
		return smallimage;
	}
	public void setSmallimage(String smallimage) {
		this.smallimage = smallimage;
	}
	public String getBigimage() {
		return bigimage;
	}
	public void setBigimage(String bigimage) {
		this.bigimage = bigimage;
	}
	public String getSelfintroduce() {
		return selfintroduce;
	}
	public void setSelfintroduce(String selfintroduce) {
		this.selfintroduce = selfintroduce;
	}
	public int getLeader() {
		return leader;
	}
	public void setLeader(int leader) {
		this.leader = leader;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((bigimage == null) ? 0 : bigimage.hashCode());
		result = prime * result
				+ ((birthday == null) ? 0 : birthday.hashCode());
		result = prime * result + ((clazz == null) ? 0 : clazz.hashCode());
		result = prime * result + ((college == null) ? 0 : college.hashCode());
		result = prime * result + emailchecked;
		result = prime * result + leader;
		result = prime * result
				+ ((nickname == null) ? 0 : nickname.hashCode());
		result = prime * result + ((phone == null) ? 0 : phone.hashCode());
		result = prime * result
				+ ((position == null) ? 0 : position.hashCode());
		result = prime * result
				+ ((safeanswer == null) ? 0 : safeanswer.hashCode());
		result = prime * result
				+ ((safequestion == null) ? 0 : safequestion.hashCode());
		result = prime * result
				+ ((selfintroduce == null) ? 0 : selfintroduce.hashCode());
		result = prime * result + sex;
		result = prime * result
				+ ((smallimage == null) ? 0 : smallimage.hashCode());
		result = prime * result
				+ ((studentid == null) ? 0 : studentid.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Stumore other = (Stumore) obj;
		if (bigimage == null) {
			if (other.bigimage != null)
				return false;
		} else if (!bigimage.equals(other.bigimage))
			return false;
		if (birthday == null) {
			if (other.birthday != null)
				return false;
		} else if (!birthday.equals(other.birthday))
			return false;
		if (clazz == null) {
			if (other.clazz != null)
				return false;
		} else if (!clazz.equals(other.clazz))
			return false;
		if (college == null) {
			if (other.college != null)
				return false;
		} else if (!college.equals(other.college))
			return false;
		if (emailchecked != other.emailchecked)
			return false;
		if (leader != other.leader)
			return false;
		if (nickname == null) {
			if (other.nickname != null)
				return false;
		} else if (!nickname.equals(other.nickname))
			return false;
		if (phone == null) {
			if (other.phone != null)
				return false;
		} else if (!phone.equals(other.phone))
			return false;
		if (position == null) {
			if (other.position != null)
				return false;
		} else if (!position.equals(other.position))
			return false;
		if (safeanswer == null) {
			if (other.safeanswer != null)
				return false;
		} else if (!safeanswer.equals(other.safeanswer))
			return false;
		if (safequestion == null) {
			if (other.safequestion != null)
				return false;
		} else if (!safequestion.equals(other.safequestion))
			return false;
		if (selfintroduce == null) {
			if (other.selfintroduce != null)
				return false;
		} else if (!selfintroduce.equals(other.selfintroduce))
			return false;
		if (sex != other.sex)
			return false;
		if (smallimage == null) {
			if (other.smallimage != null)
				return false;
		} else if (!smallimage.equals(other.smallimage))
			return false;
		if (studentid == null) {
			if (other.studentid != null)
				return false;
		} else if (!studentid.equals(other.studentid))
			return false;
		return true;
	}
	
	public Stumore(String studentid, String clazz, String college, int sex,
			Date birthday, String nickname, String phone, String safequestion,
			String safeanswer, int emailchecked, String smallimage,
			String bigimage, String selfintroduce, int leader, String position) {
		super();
		this.studentid = studentid;
		this.clazz = clazz;
		this.college = college;
		this.sex = sex;
		this.birthday = birthday;
		this.nickname = nickname;
		this.phone = phone;
		this.safequestion = safequestion;
		this.safeanswer = safeanswer;
		this.emailchecked = emailchecked;
		this.smallimage = smallimage;
		this.bigimage = bigimage;
		this.selfintroduce = selfintroduce;
		this.leader = leader;
		this.position = position;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public Stumore() {
		super();
	}
	
	
}
